<?php
namespace Cyfy\Modules\Text2Image;

class Module extends \Cyfy\Module
{
    static public function call($name)
    {
        if($name == "captcha")
            return self :: captcha();
    }
    
    static private function captcha()
    {
        $uniq = $_SESSION["captcha"][$_GET["cid"]];
        $i = new Text2Image($uniq, "#111111", "#FFFFFF", "arial.ttf", 14);
        $i -> view();
    }
}